<ion-view view-title="收货地址">
  <ion-content>
    <ion-refresher on-refresh="doRefresh()"></ion-refresher>
    <ion-list>
      <ion-item class="item item-remove-animate item-icon-left item-icon-right" ng-repeat="address in addresses" type="item-text-wrap" href="#/address/edit/{{address.deliveryaddressid}}">
        <i class="icon ion-ios-location positive"></i>
        <h2>{{address.name}}&nbsp;&nbsp;<i ng-show="{{address.isselect == 1}}" class="positive">默认</i></h2>
        <p>{{address.address}}<br>{{address.phonenub}}</p>
        <i class="icon ion-ios-arrow-right"></i>
        <ion-option-button class="button-balanced" ng-click="setSelect(address.deliveryaddressid)">设为默认</ion-option-button>
        <ion-option-button class="button-assertive" ng-click="delete(address.deliveryaddressid)">删除</ion-option-button>
      </ion-item>
      <a class="item" href="#/address/edit/new">
        <h2>添加地址</h2>
      </a>
    </ion-list>
  </ion-content>
</ion-view>
